<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="<%=basePath%>resources/css/amazeui.min.css"/>
    <script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="http://cdn.amazeui.org/amazeui/2.4.2/js/amazeui.min.js"></script>

    <title>用户登录</title>
    <style>
      .am-g h1 {
        margin-top : 10px;
      }
      .name {
        color : blue;
      }
      .am-cf {
        margin-top : 20px;
      }
    </style>
  </head>
  <body>
    <div class="am-g">
      <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
        <h1 ><a href="#" class="am-icon-btn am-success am-icon-shield"></a>  用户中心</h1>
        <div class="detail">
          <div>
            <span class="name">姓    名：</span>
            <span> ${username }</span>
          </div>
          <div>
            <span  class="name">邮    箱：</span>
            <span>${email }</span>
          </div>
          <div>
            <span  class="name">专    业：</span>
            <span>${field } </span>
          </div>
          <div>
            <span  class="name">上次登录：</span>
            <span> <fmt:formatDate value="${lastLoginTime }" pattern="yyyy-MM-dd"/>  </span>
          </div>
          <div class="am-cf">
            <button type="submit" class="am-btn am-btn-primary am-btn-block" onclick="window.location.href='<%=basePath%>j_spring_security_logout?j_logouttype=mobile'">注    销</button>
          </div>
        </div>
      </div>
    </div>
  </body>
  <script>
  </script>
</html>